<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>

<script type="text/javascript">
function showRouteList() {
	window.location.href = "${pageContext.request.contextPath}/routeList.action";
}
</script>

<meta charset="UTF-8">
<title>物流综合服务平台订单池</title>
</head>
<body>
	<div>
		<a href ="${pageContext.request.contextPath}/routeList.action"  >物流线路管理</a>
		<a href ="${pageContext.request.contextPath}/showCompanyOrderList.action" >订单管理管理</a>
		<a href ="${pageContext.request.contextPath}/truckManage.action"  >车辆管理</a>
	</div>
	<!-- 订单筛选 -->
	<div>
		<form action="${pageContext.request.contextPath }/order.action" method="post">
			<tr>
				<td>始发地:<input type="text" name="start"></td>
				<td>目的地:<input type="text" name="end"></td>
				<td>重量区间:<input type="text" name="minWeight">~<input type="text" name="maxWeight"></td>
				<td  align="center">货物类别：</td>
				<td bgColor="#ffffff" colSpan="3">
					 <select name="cotegary">
					    <option></option>
						<option value="绿通">绿通</option>
						<option value="危险品">危险品</option>
						<option value="电子器件">电子器件</option>
						<option value="食品">食品</option>
						<option value="易碎物品">易碎物品</option>
						<option value="建筑用品">建筑用品</option>
						<option value="医疗器械">医疗器械</option>
						<option value="电器">电器</option>
						<option value="机械">机械</option>
						<option value="动物">动物</option>
						<option value="汽车">汽车</option>		
						<option value="服装">服装</option>
						<option value="其他">其他</option>				
					</select>
				</td>
				<td><input type="submit" value="筛选"></td>
			</tr>
		</form>
		<a href="${pageContext.request.contextPath}/fingOrderListByRouteNode.action">根据已有线路筛选</a>
	</div>
	<!-- 订单list  -->
	
	<div>
		
	</div>
	
	<div> 
		<table>
			<thead>
				<tr>
					<th>订单ID</th>
					<th>始发地</th>
					<th>目的地</th>
					<th>重量</th>
					<th>货物种类</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${orderList}" var="order">
					<tr>
						<td>${order.orderID }</td>
						<td>${order.start }</td>
						<td>${order.end }</td>
						<td>${order.weight}</td>
						<td>${order.cotegary}</td>
						<td><a href="${pageContext.request.contextPath}/showOrder.action?orderID=${order.orderID}">查看订单</a></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</body>
</html>